//
//  UIColor+EXUTenColor.h
//  lanjing
//
//  Created by 石奇 on 15/7/16.
//  Copyright (c) 2015年 EXUTECH. All rights reserved.
//

#import <UIKit/UIKit.h>

#undef	RGB
#define RGB(R,G,B)		[UIColor colorWithRed:R/255.0f green:G/255.0f blue:B/255.0f alpha:1.0f]

#undef	RGBA
#define RGBA(R,G,B,A)	[UIColor colorWithRed:R/255.0f green:G/255.0f blue:B/255.0f alpha:A]

#undef	HEX_RGB
#define HEX_RGB(V)		[UIColor fromHexValue:V]

#undef kStringColor
#define kStringColor(V) HEX_RGB(strtoul([[V stringByReplacingOccurrencesOfString:@"#" withString:@"0x"] UTF8String], 0, 16))

#undef	HEX_RGBA
#define HEX_RGBA(V, A)	[UIColor fromHexValue:V alpha:A]

#undef	SHORT_RGB
#define SHORT_RGB(V)	[UIColor fromShortHexValue:V]

@interface UIColor (EXUTenColor)

+(UIColor *)zeroColor;

+(UIColor *)firstColor;

+(UIColor *)secondColor;

+(UIColor *)thirdColor;

+(UIColor *)fourthColor;

+(UIColor *)fifthColor;

+(UIColor *)sixthColor;

+(UIColor *)seventhColor;

+(UIColor *)eighthColor;

+(UIColor *)ninthColor;

+(UIColor *)anchorColor;

+ (UIColor *)fromHexValue:(NSUInteger)hex;
+ (UIColor *)fromHexValue:(NSUInteger)hex alpha:(CGFloat)alpha;

+ (UIColor *)fromShortHexValue:(NSUInteger)hex;
+ (UIColor *)fromShortHexValue:(NSUInteger)hex alpha:(CGFloat)alpha;

+ (UIColor *)colorWithString:(NSString *)string; // {#FFF|#FFFFFF|#FFFFFFFF}{,0.6}
+ (UIColor *)colorWithString:(NSString *)string andAlp:(CGFloat )alp;
@end
